package com.qiuhu.javase.innerclass;

/**
 * 成员内部类
 * @author Administrator
 *
 */
public class MemberInnerClass {

	private String str;
	
	public void outerDisplay() {
		System.out.println("�ⲿ��");
	}
	
	public class InnerClass {
		public void innerDisplay() {
			str = "qiuhu...";
			System.out.println(str);
			outerDisplay();
		}
	}
	
	public InnerClass getInnerClass() {
		return new InnerClass();
	}
	
	public static void main(String[] args) {
		MemberInnerClass outerClass = new MemberInnerClass();
		MemberInnerClass.InnerClass innerClass = outerClass.getInnerClass();
		innerClass.innerDisplay();
	}
}
